package com.samphanie.auiu.common.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Set;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleDto implements Serializable {
    private static final long serialVersionUID = 3515901478224028254L;

    private Long id;

    @NotBlank(message = "角色编码不能为空")
    private String roleName;

    @NotBlank(message = "角色名称不能为空")
    private String displayName;

    private boolean builtIn;

    private boolean status;

    private Integer sort;

    private String remark;

    private Set<PermissionsDto> permissions;
    private Set<Long> menus;
    private Set<Long> resources;

}
